package mgslangpack;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class MenuStaff
{
    public MenuStaff() throws Exception
    {
        Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11;
        final JFrame jf;

        jf=new JFrame("Staff Menu");
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        jf.setSize(800,500);
        jf.setLayout(null);
        jf.setVisible(false);

        Container ctn=jf.getContentPane();
        ctn.setBackground(Color.LIGHT_GRAY);

        Font f1 = new Font("Lucida Handwriting",Font.BOLD,30);
        Font f2 = new Font("Lucida Handwriting",Font.BOLD,20);

        Label l1 = new Label("Select an action for Member or Booking");
        l1.setBounds(50,10,1000,30);
        l1.setFont(f1);
        Label l3 = new Label("Booking");
        l3.setBounds(145,50,100,40);
        l3.setFont(f1);
        jf.add(l3);
        b1 = new Button(">>>");
        b1.setBounds(150,100,80,30);
        b1.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                try
                {
                    jf.hide();
                    ViewBooking vb=new ViewBooking();
                }
                catch(Exception e2){}
            }
        }
        );
        b2 = new Button(">>>");
        b2.setBounds(150,150,80,30);
        b2.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                try
                {
                    jf.hide();
                    AddBooking ab = new AddBooking();
                }
                catch(Exception e2){}
            }
        }
        );
        b3 = new Button(">>>");
        b3.setBounds(150,200,80,30);
        b3.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e1)
            {
                try
                {
                    jf.hide();
                    DeleteBooking db = new DeleteBooking();
                }
                catch(Exception e3){}
            }
        }
        );
        b4 = new Button(">>>");
        b4.setBounds(150,250,80,30);
        b4.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e1)
            {
                try
                {
                    jf.hide();
                    UpdateBooking eb = new UpdateBooking();
                }
                catch(Exception e3){}
            }
        }
        );
        b5 = new Button(">>>");
        b5.setBounds(150,300,80,30);
        b5.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e1)
            {
                try
                {
                    jf.hide();
                    SearchBooking sb = new SearchBooking();
                }
                catch(Exception e3){}
            }
        }
        );
        Label l2 = new Label("Member");
        l2.setBounds(489,50,100,40);
        l2.setFont(f1);
        jf.add(l2);
        b6 = new Button("<<<");
        b6.setBounds(500,100,80,30);
        b6.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                try
                {
                    ViewMem vm = new ViewMem();
                }
                catch(Exception e2){}
            }
        }
        );
        b7 = new Button("<<<");
        b7.setBounds(500,150,80,30);
        b7.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                try
                {
                    AddMem am = new AddMem();
                }
                catch(Exception e2){}
            }
        }
        );
        b8 = new Button("<<<");
        b8.setBounds(500,200,80,30);
        b8.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e1)
            {
                try
                {
                    DeleteMem dm = new DeleteMem();
                }
                catch(Exception e3){}
            }
        }
        );
        b9 = new Button("<<<");
        b9.setBounds(500,250,80,30);
        b9.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e1)
            {
                try
                {
                    UpdateMem um = new UpdateMem();
                }
                catch(Exception e3){}
            }
        }
        );
        b10=new Button("<<<");
        b10.setBounds(500,300,80,30);
        b10.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e1)
            {
                try
                {
                    SearchMem sm = new SearchMem();
                }
                catch(Exception e3){}
            }
        }
        );
        Label l4 = new Label("------- View List -------");
        l4.setBounds(300,100,200,35);
        l4.setFont(f2);
        jf.add(l4);
        Label l5 = new Label("---------- Add ----------");
        l5.setBounds(300,150,200,35);
        l5.setFont(f2);
        jf.add(l5);
        Label l6 = new Label("--------- Delete --------");
        l6.setBounds(300,200,200,35);
        l6.setFont(f2);
        jf.add(l6);
        Label l7 = new Label("--------- Update --------");
        l7.setBounds(300,250,200,35);
        l7.setFont(f2);
        jf.add(l7);
        Label l8 = new Label("-------- Search ---------");
        l8.setBounds(300,300,200,35);
        l8.setFont(f2);
        jf.add(l8);
        b11 = new Button("Exit");
        b11.setBounds(50,400,80,30);
        b11.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e8)
            {
                try
                {
                    System.exit(0);
                }
                catch(Exception e9){}
            }
        }
        );
        jf.add(b1);jf.add(b2);jf.add(b3);jf.add(b4);jf.add(b5);jf.add(b6);
        jf.add(b7);jf.add(b8);jf.add(b9);jf.add(b10);jf.add(b11);
        jf.show();
    }
}
/******************************************************************************/


